package cn.hsw.component.web.validated.annotations;

import cn.hsw.component.core.base.BaseConstant;
import cn.hsw.component.web.validated.valid.MustInValid;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.*;

/**
 * 不能重复验证注解
 * @author 李子木
 * @date 2020-11-04
 */
@Documented
@Target({ElementType.PARAMETER, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = MustInValid.class)
public @interface MustIn {

    String message() default BaseConstant.VALID_PASSWORD_ERROR_MSG;

    String[] types();

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};
    
}
